package com.itheima.customException;

import java.util.Scanner;

public class Tset {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        Student student = new Student();

        System.out.println("请录入年龄：");
        int age = scanner.nextInt();
        try {
            student.setAge(age);
        }catch (AgeException a){
            a.printStackTrace();
        }

        System.out.println("继续执行");
    }
}
